function schedule = load_schedule_from_file(filename)
    fid = fopen(filename, 'r');
    if fid == -1
        error('错误: 无法打开调度文件: %s', filename);
    end
    % C++代码将ID+1，这里也保持一致
    schedule = fscanf(fid, '%d') + 1;
    fclose(fid);
end